import 'package:clean_app/interface/mid_interface.dart';
import 'package:flutter/material.dart';

class PresetTagProvider extends ChangeNotifier {
  List presetTags = [];

  getData() async {
    var res = await TaskApi().getTags();
    presetTags = res["data"];
    refresh();
  }

  refresh() {
    notifyListeners();
  }
}

class TaskProvider extends ChangeNotifier {
  List uploadedData = [];

  getData() async {
    var res = await TaskApi().getSubmissions();
    uploadedData = res["data"]["submissions"];
    print(res);
    refresh();
  }

  refresh() {
    notifyListeners();
  }
}
